﻿<Window x:Class="NascarEventsWPF.Page2_UsersandGroups"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Page2_UsersandGroups" Height="728.06" Width="700" Background="CornflowerBlue" Loaded="Window_Loaded_1">
    <Grid Margin="0,-27,2.8,-18" HorizontalAlignment="Right" Width="700">
        <TextBox x:Name="attribute_search_box" HorizontalAlignment="Left" Height="23" Margin="207,443,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" RenderTransformOrigin="0.5,0.5" TabIndex="9">
            <TextBox.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform Angle="-0.036"/>
                    <TranslateTransform/>
                </TransformGroup>
            </TextBox.RenderTransform>
        </TextBox>
        <Button x:Name="search_button" Content="Search " HorizontalAlignment="Left" Margin="341,443,0,0" VerticalAlignment="Top" Width="69" Click="search_Attribute_button_Click" TabIndex="10"/>
        <TextBlock x:Name="groupID_txb" HorizontalAlignment="Left" Margin="58,282,0,0" TextWrapping="Wrap" VerticalAlignment="Top" RenderTransformOrigin="-5.498,-3.132" Height="23" Width="56"><Run Background="#FF7B93C0" Text=""/></TextBlock>
        <Label Content="Group ID" HorizontalAlignment="Left" Margin="43,251,0,0" VerticalAlignment="Top" FontWeight="Bold"/>
        <TextBox x:Name="groupName_txt" HorizontalAlignment="Left" Height="23" Margin="143,277,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="110" TabIndex="3"/>
        <TextBox x:Name="groupPriority_txt" HorizontalAlignment="Left" Height="23" Margin="268,277,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="101" TabIndex="4"/>
        <TextBox x:Name="groupDescription_txt" HorizontalAlignment="Left" Height="23" Margin="381,277,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="171" TabIndex="5"/>
        <Label Content="Group Name" HorizontalAlignment="Left" Margin="143,252,0,0" VerticalAlignment="Top" RenderTransformOrigin="6.872,0.676" FontWeight="Bold"/>
        <Label Content="Group Priority" HorizontalAlignment="Left" Margin="266,254,0,0" VerticalAlignment="Top" FontWeight="Bold"/>
        <Label Content="Description" HorizontalAlignment="Left" Margin="381,252,0,0" VerticalAlignment="Top" FontWeight="Bold"/>
        <Button x:Name="groupAdd_btn" Content="Add Group" HorizontalAlignment="Left" Margin="576,260,0,0" VerticalAlignment="Top" Width="88" Click="groupAdd_btn_Click" TabIndex="6"/>
        <Button x:Name="groupEdit_btn" Content="Update Group" HorizontalAlignment="Left" Margin="576,288,0,0" VerticalAlignment="Top" Width="88" Click="groupEdit_btn_Click" TabIndex="7"/>
        <TextBlock x:Name="attributeID_txb" HorizontalAlignment="Left" Margin="31,622,0,0" TextWrapping="Wrap" VerticalAlignment="Top" RenderTransformOrigin="-5.498,-3.132"/>
        <Label Content="Attribute ID" HorizontalAlignment="Left" Margin="33,597,0,0" VerticalAlignment="Top" FontWeight="Bold"/>
        <TextBox x:Name="attributeName_txt" HorizontalAlignment="Left" Height="23" Margin="115,620,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="98" TabIndex="11"/>
        <TextBox x:Name="attributeType_txt" HorizontalAlignment="Left" Height="23" Margin="226,621,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="85" TabIndex="12"/>
        <TextBox x:Name="attributeDescription_txt" HorizontalAlignment="Left" Height="23" Margin="326,621,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="176" TabIndex="13"/>
        <RadioButton x:Name="disableN_rb" GroupName="attributedisabled" Content="No" HorizontalAlignment="Left" Margin="518,638,0,0" VerticalAlignment="Top" TabIndex="15"/>
        <RadioButton x:Name="disableY_rb" GroupName="attributedisabled"  Content="Yes" HorizontalAlignment="Left" Margin="519,616,0,0" VerticalAlignment="Top" RenderTransformOrigin="1.715,0.365" TabIndex="14"/>
        <Label Content="Attribute Name" HorizontalAlignment="Left" Margin="116,596,0,0" VerticalAlignment="Top" RenderTransformOrigin="6.872,0.676" FontWeight="Bold"/>
        <Label Content="Disabled" HorizontalAlignment="Left" Margin="507,597,0,0" VerticalAlignment="Top"/>
        <Label Content="Attribute Type" HorizontalAlignment="Left" Margin="227,594,0,0" VerticalAlignment="Top" FontWeight="Bold"/>
        <Label Content="Description" HorizontalAlignment="Left" Margin="328,594,0,0" VerticalAlignment="Top" FontWeight="Bold"/>
        <Button x:Name="AddAttribute_btn" Content="Add Attribute" HorizontalAlignment="Left" Margin="571,615,0,0" VerticalAlignment="Top" Width="92" Click="AddAttribute_btn_Click" TabIndex="16"/>
        <Button x:Name="updateAttribute_btn" Content="Update Attribute" HorizontalAlignment="Left" Margin="571,642,0,0" VerticalAlignment="Top" Width="92" Click="updateAttribute_btn_Click" TabIndex="17"/>
        <DataGrid x:Name="attributes_datagrid" ColumnWidth="*" HorizontalAlignment="Left" Margin="44,474,0,0" VerticalAlignment="Top" Height="111" Width="617"/>
        <DataGrid x:Name="groups_datagrid" ColumnWidth="*" HorizontalAlignment="Left" Margin="45,118,0,0" VerticalAlignment="Top" Width="618" Height="123"/>
        <TextBox Name="GroupResults_txt" HorizontalAlignment="Left" Height="23" Margin="97,316,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="461"/>
        <Label Content="Results" HorizontalAlignment="Left" Margin="38,313,0,0" VerticalAlignment="Top" FontWeight="Bold"/>
        <Button x:Name="clearGroup" Content="Clear" HorizontalAlignment="Left" Margin="575,318,0,0" VerticalAlignment="Top" Width="88" Click="cleargroup_btn_Click" TabIndex="8"/>
        <TextBox Name="group_search_box" HorizontalAlignment="Left" Height="23" Margin="201,76,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" TabIndex="1"/>
        <Button x:Name="group_search_button" Content="Search " HorizontalAlignment="Left" Margin="335,78,0,0" VerticalAlignment="Top" Width="68" Click="search_button_Group_Click" TabIndex="2"/>
        <TextBox Name="Attribute_Results_txt" HorizontalAlignment="Left" Height="23" Margin="97,668,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="455"/>
        <Button x:Name="clearAttribute" Content="Clear" HorizontalAlignment="Left" Margin="569,669,0,0" VerticalAlignment="Top" Width="94" Click="clearAttribute_Click" TabIndex="18"/>
        <Label Content="Results" HorizontalAlignment="Left" Margin="38,665,0,0" VerticalAlignment="Top" FontWeight="Bold"/>
        <Button Name="btnRefreshGrp" Content="Refresh" HorizontalAlignment="Left" Margin="588,91,0,0" VerticalAlignment="Top" Width="75" Click="btnRefreshGrp_Click"/>
        <GroupBox Header="Maintain Groups" HorizontalAlignment="Left" Margin="29,46,0,0" VerticalAlignment="Top" Height="314" Width="653" FontWeight="Bold" FontSize="16"/>
        <Button x:Name="btnRefreshAttrib" Content="Refresh" HorizontalAlignment="Left" Margin="588,449,0,0" VerticalAlignment="Top" Width="75" Click="btnRefreshAttrib_Click"/>
        <GroupBox Header="Maintain Attributes" HorizontalAlignment="Left" Margin="29,379,0,0" VerticalAlignment="Top" Height="334" Width="655" FontWeight="Bold" FontSize="16"/>
        <Label Content="Search by Group Name" HorizontalAlignment="Left" Margin="50,72,0,0" VerticalAlignment="Top" RenderTransformOrigin="-4.75,1.639" FontWeight="Bold"/>
        <Label Content="Search  by Attribute Name" HorizontalAlignment="Left" Margin="40,435,0,0" VerticalAlignment="Top" Width="160" FontWeight="Bold"/>

    </Grid>
</Window>
